<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class StudentWrongQuestion extends Model
{
    protected $fillable = [
        'student_id', 'course_id', 'paper_id', 'question_id',
        'student_answer', 'correct_answer', 'explanation'
    ];
    
    // 禁用自动时间戳（表中没有 created_at 和 updated_at 字段）
    public $timestamps = false;

    // 关联题目
    public function question()
    {
        return $this->belongsTo(Question::class);
    }
}